package com.elock.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.elock.base.core.entity.BaseEntity;

/**
 * 终端位置信息
 * @author 仁德
 */
@Entity
@Table(name = "terminal_position")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "terminal_position_sequence")
public class TerminalPosition extends BaseEntity {

	private static final long serialVersionUID = -7960021542340741420L;

//	/** 终端设备id */
//	private Long terminalId;

	/** 终端设备编号 */
	private String terminalNum;

	/** 锁号 */
	private String elockNum;

	/** 电压 */
	private BigDecimal vol;

	/** 基站定位数据 */
	private String jzdw;

	/** 经度 */
	private BigDecimal longitude;

	/** 纬度 */
	private BigDecimal latitude;
	/** 高程 */
	private BigDecimal altitude;
	/** 速度 */
	private BigDecimal speed;
	/** 方向 */
	private int direction;
	/** GPS时间 */
	private String gpsTime;

//	private String totaldistance;
//	private String oilmass;
//	private String status;
//	private String positioningtime;
//	private String sendtime;
//	private String statuswarning;
//	private String statusonline;
//	private String statusstart;
	/** 状态信息描述 */
	private String statusDesc;
//	private String position;
//	private String positiontype;
	/** 报警信息描述 */
	private String warningDesc;
//	private String lac;
//	private String cell;
	/** 备注 */
	private String remark;

	/** 当次实时位置信息唯一标识，日志也记录  */
	private String uuid;

	/** 上传协议类型  */
	private int type;

	/** 版本号 */
	private String version;

	/**  
	 * 获取terminalNum  
	 * @return terminalNum terminalNum  
	 */
	public String getTerminalNum() {
		return terminalNum;
	}

	/**  
	 * 设置terminalNum  
	 * @param terminalNum terminalNum  
	 */
	public void setTerminalNum(String terminalNum) {
		this.terminalNum = terminalNum;
	}

	/**  
	 * 获取vol  
	 * @return vol vol  
	 */
	@Column(precision = 21, scale = 6)
	public BigDecimal getVol() {
		return vol;
	}

	/**  
	 * 设置vol  
	 * @param vol vol  
	 */
	public void setVol(BigDecimal vol) {
		this.vol = vol;
	}

	/**  
	 * 获取jzdw  
	 * @return jzdw jzdw  
	 */
	public String getJzdw() {
		return jzdw;
	}

	/**  
	 * 设置jzdw  
	 * @param jzdw jzdw  
	 */
	public void setJzdw(String jzdw) {
		this.jzdw = jzdw;
	}

	/**  
	 * 获取longitude  
	 * @return longitude longitude  
	 */
	@Column(precision = 21, scale = 6)
	public BigDecimal getLongitude() {
		return longitude;
	}

	/**  
	 * 设置longitude  
	 * @param longitude longitude  
	 */
	public void setLongitude(BigDecimal longitude) {
		this.longitude = longitude;
	}

	/**  
	 * 获取latitude  
	 * @return latitude latitude  
	 */
	@Column(precision = 21, scale = 6)
	public BigDecimal getLatitude() {
		return latitude;
	}

	/**  
	 * 设置latitude  
	 * @param latitude latitude  
	 */
	public void setLatitude(BigDecimal latitude) {
		this.latitude = latitude;
	}

	/**  
	 * 获取altitude  
	 * @return altitude altitude  
	 */
	@Column(precision = 21, scale = 6)
	public BigDecimal getAltitude() {
		return altitude;
	}

	/**  
	 * 设置altitude  
	 * @param altitude altitude  
	 */
	public void setAltitude(BigDecimal altitude) {
		this.altitude = altitude;
	}

	/**  
	 * 获取speed  
	 * @return speed speed  
	 */
	@Column(precision = 21, scale = 6)
	public BigDecimal getSpeed() {
		return speed;
	}

	/**  
	 * 设置speed  
	 * @param speed speed  
	 */
	public void setSpeed(BigDecimal speed) {
		this.speed = speed;
	}

	/**  
	 * 获取direction  
	 * @return direction direction  
	 */
	public int getDirection() {
		return direction;
	}

	/**  
	 * 设置direction  
	 * @param direction direction  
	 */
	public void setDirection(int direction) {
		this.direction = direction;
	}

	/**  
	 * 获取gpsTime  
	 * @return gpsTime gpsTime  
	 */
	public String getGpsTime() {
		return gpsTime;
	}

	/**  
	 * 设置gpsTime  
	 * @param gpsTime gpsTime  
	 */
	public void setGpsTime(String gpsTime) {
		this.gpsTime = gpsTime;
	}

	/**  
	 * 获取statusDesc  
	 * @return statusDesc statusDesc  
	 */
	public String getStatusDesc() {
		return statusDesc;
	}

	/**  
	 * 设置statusDesc  
	 * @param statusDesc statusDesc  
	 */
	public void setStatusDesc(String statusDesc) {
		this.statusDesc = statusDesc;
	}

	/**  
	 * 获取warningDesc  
	 * @return warningDesc warningDesc  
	 */
	public String getWarningDesc() {
		return warningDesc;
	}

	/**  
	 * 设置warningDesc  
	 * @param warningDesc warningDesc  
	 */
	public void setWarningDesc(String warningDesc) {
		this.warningDesc = warningDesc;
	}

	/**  
	 * 获取remark  
	 * @return remark remark  
	 */
	public String getRemark() {
		return remark;
	}

	/**  
	 * 设置remark  
	 * @param remark remark  
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}

	/**  
	 * 获取uuid  
	 * @return uuid uuid  
	 */
	public String getUuid() {
		return uuid;
	}

	/**  
	 * 设置uuid  
	 * @param uuid uuid  
	 */
	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getElockNum() {
		return elockNum;
	}

	public void setElockNum(String elockNum) {
		this.elockNum = elockNum;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	/**  
	 * 获取version  
	 * @return version version  
	 */
	public String getVersion() {
		return version;
	}

	/**  
	 * 设置version  
	 * @param version version  
	 */
	public void setVersion(String version) {
		this.version = version;
	}

}